package Observers;

/**
 * <p>Title DigitObserver</p>
 *
 * @author YiMing Liu
 * @date 2018/6/14 16:38
 * <p>Description:</p>
 */
public class DigitObserver implements Observer {

    @Override
    public void update(NumberGenerator numberGenerator) {
        System.out.println("DigitObserver:" + numberGenerator.getNubmer());
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
